﻿# -*- coding:UTF-8 -*-
import os
import time

class Enemy:
	iHP = 0
	iSP = 0
	iMP = 0
	iAtt = 0
	#def __init__(self):
	#	self.iHP = 100
	#	self.iSP = 100
	def __init__(self,i1=0,i2=0):
		self.iHP = i1
		self.iMP = i2
		self.iSP = 100
		self.iAtt = 5
		print 'Enemy:',self.iHP,'->self.iHP',self.iSP,'->self.iSP',self.iMP,'->self.iMP'
	def getHP(self):
		#print self.iHP,"Enemy->iHP"
		return self.iHP
	def getSP(self):
		return self.iSP
	def getMP(self):
		return self.iMP
	def getHurt(self,iiHP):
		print "敌方受到:",iiHP,"点攻击"
		time.sleep(0.5)
		self.iHP = self.iHP - iiHP
		print '还剩:',self.iHP,'点血量'
		time.sleep(0.5)
	def getAtth(self):
		return self.iAtt